<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="referrer" content="never">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>播放中</title>
    <link type="text/css" rel="stylesheet" href="https://static-js001.oss-accelerate.aliyuncs.com/js-libs/HUI-master/css/hui.css?versionId=CAEQBxiBgIDm_OjzwxciIDIyMDAxMmJjOWQ0MDRlYzdhMDcxYWY2YmExY2QwYTBi" />
    <style type="text/css">
        #list2 li{width:50%; float:left; 0px;}
        #list2 .hui-img-list-content{padding:5px; padding-bottom:10px;}
        #list2 h1{font-size:14px;}
        .time{
            font-size: 12px;
            height: 16px;
            line-height: 16px;
            margin-top: -16px;
            color: yellow;
            padding-left: 5px;
            z-index: 999;
            font-weight: bold;
        }
        @keyframes ani {
            0% {
            	transform: scale(0.9,0.9);
            	opacity:1;
            	background-color:#fff;  
            	color:red;
            }
            25% {
            	transform:scale(1,1);
            	opacity:0.9;
            	background-color:yellow; 
            	color:red;
            }
            50% {
            	transform:scale(0.9,0.9);
            	opacity:1;
            	background-color:#fff;  
            	color:red;
            }
            75% {
            	transform:scale(1,1);
            	opacity:0.9;
            	background-color:yellow; 
            	color:red;
            }
            100% {
            	transform:scale(0.9,0.9);
            	opacity:1;
            	background-color:#fff;  
            	color:red;
            }	
        }
        .home{
            position: fixed;
            z-index: 20;
            bottom: 70px;
            background: rgba(1,9,9,0.7);
            border-top-left-radius:15px;
            border-bottom-left-radius:15px;
            padding:5px 10px;
            color: #fff;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 14px;
            right: 0px;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <header class="hui-header" style='background:#000;'>
        <div id="hui-back"></div>
        <h1>{{$video['title']}}</h1>
        <div id="hui-header-menu"></div>
    </header>
    <div class="hui-wrap" style="color:#fff !important">
        <!-- <iframe id='video-play' width="100%" height="100%" src="" frameborder="0" allowtransparency="true" allowfullscreen="true" allowfullscreen></iframe> -->
        <div class="video-player" style="height: 200px;"></div>
        <div style="padding:1px 20px;display:flex;justify-content: space-between;margin-top:5px;">
            <button id='line01' type="button" class="hui-button hui-button-small" style="margin:10px 0;width:40%;background:black;color:#fff;">线路一</button>
            <button id='line02' type="button" class="hui-button hui-button-small" style="margin:10px 0;width:40%;background:black;color:#fff;">线路二</button>
        </div>
        <div style='padding: 10px 0;background: #fff;text-align: center;'>
            <text class='current_line' style='color: #555;'>当前【线路一】</text>
            <text style='color: red;font-weight: bold;'>不能播放请切换线路</text>
            <text id="comment" style="width: 100px;background: #555;color: #fff;padding: 3px 8px;border-radius: 5px;margin-left: 10px;">评价该片</text>
        </div>
        <div style="height:1px; background: #ccc;margin:5px 10px;"></div>
        <div class="hui-wrap">
            <div id="refreshContainer" class="hui-refresh">
                <div class="hui-refresh-icon"></div>
                <div class="hui-refresh-content">
                    <div class="hui-img-list" id="list2" style="padding:10px 5px; ">
                        <ul id='video_list'>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <div style="padding:1px 20px;margin-bottom:40px;">
            <button id='born' onclick='location.href="/born?code={{$code}}"' type="button" class="hui-button hui-button-large hui-danger" style="margin-top:15px;">更多视频</button>
        </div>
    </div>
    <div id="hui-black-mask" style="display: none;">
        <div id="hui-black-mask-content" style="position:fixed;transform: rotate(0deg);left:0;top:unset;bottom:0px;background:red;padding:5px 1%;padding-bottom:15px;border-top-right-radius: 10px;border-top-left-radius: 10px;">
            <div id="title" style="height: 45px;line-height:22.5px;color: #fff;width: 98vw;">
                付费观看
            </div>
            @if(config('visit.preview_video'))
                <div style="height: 30px;font-size: 20px;text-align: center;color:yellow;font-weight:bold;" id="view-tips">↓↓8秒试看↓↓</div>
            @else
                <div style="height: 18px;font-size: 14px;background:rgba(0,0,0,0.5);color:#fff;" id="view-tips"></div>
            @endif
            <div style="text-align:center;width:100%;position:relative">
                <div style="text-align:center;width:100%;position:relative;max-height: 70vh;padding-bottom: 0;">
                    @if(config('visit.preview_video'))
                        <div id='preview'>
                            <div class='video-prew' style="height:200px;"></div>
                        </div>
                    @else
                        <image class='now-pic' src="" style="max-height:70vh;width:100%;" />
                    @endif
                </div>
                <a class='todetail' href='' style="text-align:center; color:#FFFFFF; line-height:60px; margin-left: 30px;" >
                    <button id='btn-pay' style="filter:drop-shadow(0px 0px 0.5em yellow);margin:10px 0px;padding:8px 30px;background:gold;color:red;font-size:20px;font-weight:bold;border:none;border-radius:30px;animation-name: ani;animation-duration:2s;animation-iteration-count: infinite;">
                        付款 ￥{{$price}} 看整片
                    </button>
                </a>
                <div id="hui-black-close" style='margin-top:10px;float:right;margin-right:10px;' onclick='parse_video()'></div>
            </div>
        </div>
    </div>
    <a href="/tag-videos?code={{$code}}" style="
        position: fixed;
        z-index: 20;
        bottom: 120px;
        background: rgba(51,155,9,0.8);
        height: 30px;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 14px;
        right: 0px;
        padding: 0 5px;
        font-weight: bold;">👉网友围观</a>
    <a href="/born?code={{$code}}" class="home">🏠 回首页</a>
    <script src="https://static-js001.oss-accelerate.aliyuncs.com/js/common/jquery.js?versionId=CAEQBxiBgMDz1erzwxciIGM4MzZhOGY1MWE0MDQ1OTliMDdkNDQzYTdhNjkxYzUz"></script>
    <script src="https://static-js001.oss-accelerate.aliyuncs.com/js-libs/HUI-master/js/hui.js?versionId=CAEQBxiBgMCdzejzwxciIDc5YTI5YjlkZjBmZjRjZDk5NGQzMTI3MDRhOGZmOTI4"></script>
    @if(config('visit.preview_video'))
        <!-- <script src="/libs/ckplayer/ckplayer.min.js" data-name="ckplayer"></script> -->
    @endif
    <script src="/libs/ckplayer/ckplayer.min.js" data-name="ckplayer"></script>
    <script>
        var videodomain ="{{$video_cdns['video_cdn1']['domain']}}";
        var previewvideo = "{{config('visit.preview_video')}}";
        if(previewvideo && videodomain){
            var prewVideoObject = {
                container: '.video-prew',
                variable: 'player',
                video: "http://1.com",
                // mobileAutoFull: false,
                poster: './images/mobile/pre_face.jpg',
            };
            var videoPreplayer = new ckplayer(prewVideoObject);
        }
        function parse_video(){
            if(previewvideo && "undefined" != typeof videoPreplayer){
                videoPreplayer.videoPause()
            }
        }
    </script>
    <script src="/js/mobile/common.mix.js?001"   id='commonJs' price="{{$price}}"></script>
    <script src="/js/mobile/play.js?990"  
        id='playJs' 
        code="{{$code}}" 
        cdn1="{{$video_cdns['video_cdn1']['domain']}}" 
        cdn2="{{$video_cdns['video_cdn2']['domain']}}" 
        videopath="{{$video['url']}}"
        videoid="{{$video['id']}}"
        shareid="{{$video['shareid']??0}}"
        pic_type="{{config('visit.pic_type')}}">
    </script>
</body>
</html>